package com.sense.common.lang;

/**
 * @Author: jiangyong
 * @Date: 2024/11/28/9:39
 * @Description:
 */
public enum OpenCode implements ICode {

    // 系统级错误
    NULL_POINT_ERROR(7001, "空指针异常"),
    PARAMS_ERROR(7002, "参数错误"),
    NO_HANDLER_EXCEPTION(7003, "无操作器异常"),
    PARAMS_VALID_ERROR(7004, "参数校验错误"),
    METHOD_NOT_SUPPORT(7005, "方法不支持"),
    SERVER_ERROR(7006, "服务端错误"),

    ;


    private Integer code;
    private String message;

    OpenCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
